import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PTPMCComponent } from './ptpmc.component';

const routes: Routes = [
    {
        path: '',
        component: PTPMCComponent,
        children: [
            { path: 'home', loadChildren: './home/home.module#HomeModule', data: { title: '首页', module: 'ptpmc/home', power: 'SHOW' } },
            { path: 'report', loadChildren: './report/report.module#ReportModule' },
            { path: 'config', loadChildren: './config/config.module#ConfigModule' },
            { path: 'sys', loadChildren: './sys/sys.module#SysModule' },
        ]
    },
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class PTPMCRoutingModule { }
